//功能按钮控制交互/////////////////////////////////////////////////////////////////////////////////////////////
//显示用户交互页面信息player_farm_land.js
function showPlayerFarmActionDiv(type) {
	if (type == 10) {//农场信息
		gamePlayerFarmLandsDetail();
	} else if (type == 20) {//牧场信息
		gamePlayerFarmLandsDetail();
	} else if (type == 30) {//鱼塘信息
		gamePlayerFarmLandsDetail();
	} else if (type == 40) {//工坊信息
		gamePlayerFarmLandsDetail();
	} else {//关闭
		//nothing;
	}
	//关闭展示窗口
	closePlayerInteractDiv(999);
}

//显示用户交互页面信息player_game_action.js
var player_interact_type;//操作类别
var interact_page = 1;
function showPlayerInteractDiv(type) {
	player_interact_type = type;
	//加载数据
	if (type == 1) {//庄园地图
		//nothing;
	} else if (type == 10) {//仓库信息
		gamePlayerFarmWarehouseDetail(interact_page);
	} else if (type == 20) {//口袋信息
		gamePlayerFarmPocketDetail(interact_page);
	} else if (type == 30) {//商店信息
		gameStoreDetail(interact_page);
	} else if (type == 40) {//好友信息
		gamePlayerFarmFriendDetail(interact_page);
	} else if (type == 999) {//刷新
		//重新加载
		return;
	} else {//关闭
		//nothing;
	}

	$('#playerGameCommonDiv').removeClass('dn');
}
//好友交互弹窗
function showPlayerFriendDiv(type) {
	$('#playerGameFriendActionDiv').removeClass('dn');
}
//关闭好友交互
function closePlayerFriendDiv() {
	//初始化
	$('#playerGameFriendActionDiv').addClass('dn');
	playerLandId = '';
}

//关闭用户交互页面
function closePlayerInteractDiv(type) {
	if (type == 111) {//上一页
		interact_page = interact_page + 1;
		showPlayerInteractDiv(player_interact_type);
	} else if (type == 222) {//下一页
		if (interact_page > 1)
			interact_page = interact_page - 1;
		showPlayerInteractDiv(player_interact_type);
	} else if (type == 777) {//刷新
		showPlayerInteractDiv(player_interact_type);
	} else if (type == 999) {//关闭
		$('#playerGameCommonDiv').addClass('dn');
	}
}

//关闭二次弹窗1
function closePlayerOperateDiv() {
	//初始化
	$('#playerFarmDiv').addClass('dn');
	playerLandId = '';
}

//关闭二次弹窗2
function closePlayerCommonOperateDiv() {
	//初始化
	$('#playerGameCommonActionDiv').addClass('dn');
	playerLandId = '';
}